//求两个类型的差集
let person1 = {

}

let person2 = {//name|age|address name先exclude -> Omit/extrtact ->pick
    name: 'jw'
}

//求交集 在person1和person2中删除掉不需要的属性
type Inter<T exten>
type MyInter = Inter < Person1, Person2 >

    //并集 T & K => 如果类型不一样 会出现never


    //覆盖的情况
    let person5 = {
        age: 12,
        address: '霍营'
    }

let person6 = {
    name: 'jw',
    age: '18'
}
type Person5 = typeof person5;
type Overwrite<person5, person6>
